<!--
 * @Author: CtrlC
 * @Date: 2022-07-26 17:00:38
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2024-08-18 15:28:12
 * @Description: 暗黑破坏神2重置版资料小程序
 * @FilePath: /anhei2/src/App.vue
-->
<script>

export default {
  onLaunch() {
    console.log('App Launch')
    console.log(uni.$u.config.v)
    
    // 初始化主题
    this.initTheme()
  },
  onShow() {
    console.log('App Show')
  },
  onHide() {
    console.log('App Hide')
  },
  methods: {
    // 初始化主题
    initTheme() {
      // 设置导航栏样式
      uni.setNavigationBarColor({
        frontColor: '#ffffff',
        backgroundColor: '#1a1a1a',
        animation: {
          duration: 400,
          timingFunc: 'easeIn'
        }
      })
      
      // 设置TabBar样式
      uni.setTabBarStyle({
        color: '#a0a0a0',
        selectedColor: '#d4af37',
        backgroundColor: '#0a0a0a',
        borderStyle: 'black'
      })
    }
  }
}
</script>

<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import 'uview-plus/index.scss';

</style>
